﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Core;
using System.Collections;

namespace Yuanlin.Business
{
    public class AnonymousVisitCompanyRequest : TEntityRequest<AnonymousVisitCompany>
    {
        public AnonymousVisitCompanyRequest()
        {
            int? entityId = GetParameterValue<int?>(YuanlinParameterName.AnonymousVisitCompanyId);
            if (entityId.HasValue)
            {
                EntityId = entityId.Value;
            }
        }
    }
    public class AnonymousVisitCompanyListRequest : TEntityListRequest<AnonymousVisitCompany>
    {
        private int? userId = GetParameterValue<int?>(YuanlinParameterName.UserId);
        private string city = GetParameterValue<string>(YuanlinParameterName.City);
        private int? productId = GetParameterValue<int?>(YuanlinParameterName.ProductId);
        private int? categoryId = GetParameterValue<int?>(YuanlinParameterName.CategoryId);
        private string tradeType = GetParameterValue<string>(YuanlinParameterName.TradeType);
        private DateTime? lastDate = new DateTime?();

        public int? UserId
        {
            get
            {
                return userId;
            }
            set
            {
                userId = value;
            }
        }
        public string City
        {
            get
            {
                return city;
            }
            set
            {
                city = value;
            }
        }
        public int? ProductId
        {
            get
            {
                return productId;
            }
            set
            {
                productId = value;
            }
        }
        public int? CategoryId
        {
            get
            {
                return categoryId;
            }
            set
            {
                categoryId = value;
            }
        }
        public string TradeType
        {
            get
            {
                return tradeType;
            }
            set
            {
                tradeType = value;
            }
        }
        public DateTime? LastDate
        {
            get
            {
                return lastDate;
            }
            set
            {
                lastDate = value;
            }
        }
    }
    public class AnonymousVisitCompanyReply : EntityReply
    {
    }
}